Detection of the time spent on social media